﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Gammar.Digger.IDAL
{
    public interface IDbHelper
    {
        bool IsExistTable(string tableName);

        bool CreateDataTable(string tableName);

        bool CreateUrlTable(string tableName);

        bool CreateCommentsTable(string tableName);
        int ExecuteNonQuery(string strSql);

        bool Truncate(string tableName);

        /// <summary>
        /// 获取表中重复数据
        /// </summary>
        /// <param name="tableName"></param>
        /// <returns></returns>
        DataTable GetDuplicateData(string tableName);

        bool DeleteDuplicateData(string tableName);

       // bool ExeNonQuery(string sql);
    }
}
